package com.spring.annotation_demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MyService02 {
	@Autowired
	private MyService01 myService01;

	public void say(){
		System.out.println("02..");
		myService01.sayhello();
	}
}
